/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.service;

import java.util.List;

import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.model.ProjectMember;

/**
 * The Class ProjectMemberService. 服务接口
 */
public interface ProjectMemberService {

	/**
	 * 根据商城获取列表
	 */
	public List<ProjectMember> getProjectMember(String userName);

	/**
	 * 根据Id获取
	 */
	public ProjectMember getProjectMember(Long id);

	/**
	 * 删除
	 */
	public void deleteProjectMember(ProjectMember projectMember);

	/**
	 * 保存
	 */
	public Long saveProjectMember(ProjectMember projectMember);

	/**
	 * 保存
	 */
	public Long saveProjectMember(Long projectId, List<ProjectMember> projectMember);


	/**
	 * 更新
	 */
	public void updateProjectMember(ProjectMember projectMember);

	/**
	 * 获取项目组成员
	 * @param projectId
	 * @param memberName
	 * @param curPageNO
	 * @return
	 */
	public PageSupport<ProjectMember> getProjectMemberByProject(Long projectId, String memberName, String curPageNO);


	/**
	 * 批量获取项目组成员

	 */
	List<ProjectMember> getProjectBatchMemberByProject(Long projectId);

	/**
	 * 检查成员是否在项目组里
	 * @param username
	 * @param projectId
	 * @return
	 */
	boolean isMemberInProject(String username, Long projectId);

}
